package com.zb.vo;

import com.zb.annotation.NumberPattern;
import com.zb.utils.VerificUtil;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.math.BigDecimal;
import java.util.List;

/**
 * @Author WEN
 * @Date 2024/4/22 0022
 **/
@Data
@ApiModel("工单结算价对象")
public class WorkSettlementPriceVo {
    @NotNull(message = "工单ID参数不能为空，至少选择一个工单")
    @Size(min = 1, message = "至少选择一个工单")
    @ApiModelProperty(value = "工单ID", required = true)
    private List<Long> workIds;

    @NotNull(message = "商家结算价不能为空")
    @NumberPattern(regexp = VerificUtil.FLOATING_NUMBER_10_2, required = true, message = "结算价最多允许输入8位整数，两位小数")
    @ApiModelProperty(value = "商家结算价")
    private BigDecimal factorySettlementPrice;

    @NotNull(message = "服务商结算价不能为空")
    @NumberPattern(regexp = VerificUtil.FLOATING_NUMBER_10_2, required = true, message = "结算价最多允许输入8位整数，两位小数")
    @ApiModelProperty(value = "服务商结算价")
    private BigDecimal networkSettlementPrice;
}
